ENT.Type = "Anim"
ENT.Base = "base_anim"
ENT.PrintName	= "Custom Spawnpointaaaaaaaaaa"
ENT.Author	= "TGiFallen"
ENT.Category 		= "Spawnpoints";
ENT.Spawnable	= true
ENT.AdminSpawnable = false
ENT.speed = 1

function ENT:SetTarget( ent )
	self.target = ent
end

function ENT:SpawnFunction( ply, tr)

	local SpawnPos = tr.HitPos + tr.HitNormal * 1
	local ent = ents.Create( "sent_rocket" )
		ent:SetPos( SpawnPos )
		ent:Spawn()

	local phys = ent:GetPhysicsObject()
	//phys:EnableMotion(false)
	//phys:SetMass(150)
	ent:Activate()
	self.Pos = SpawnPos
	//timer.Simple(1,function() ent:SetPos(SpawnPos) end)
	return ent
end
--[[
function ENT:Think()
	if self.target then
		local angdiff = (self.target:GetPos() - self:GetPos()):Angle()

		local ang = LerpAngle(0.1,angdiff, self:GetAngles())

		self:SetAngles(self:GetAngles() + ang )
		self:SetPos( self:GetPos() + self:GetForward() * self.speed )
	else		
		//if SERVER then
		//	for i = 1 , 53 do
		//		self.Pos = ( self.Pos + self:GetForward() * self.speed )
		//	end
		//	MsgN(self.Pos)
		//else
			self:SetPos( self:GetPos() + self:GetForward() * self.speed )
			MsgN(self:GetPos())
		//end
	end
	self:NextThink( CurTime() + 0.0001)
end
--]]